package edu.mju.unit5.test;

import edu.mju.unit5.mapper.EmployeeMapper;
import edu.mju.unit5.pojo.Employee;
import edu.mju.unit5.utils.MyBatisUtil;
import org.apache.ibatis.session.SqlSession;
import org.apache.log4j.Logger;


public class testC {
    public static void main(String[] args) {
        test5_23();
    }

    public static void test5_23(){
        SqlSession sqlSession = MyBatisUtil.getSession();
        Logger logger = Logger.getLogger(testC.class);
        EmployeeMapper employeeMapper = sqlSession.getMapper(EmployeeMapper.class);
        Employee employee = employeeMapper.getEmployee(1001L);
        logger.info("雇员真实名字："+employee.getRealName());
    }
}
